package org.example.myerp.controller;

import java.util.List;

import org.example.myerp.pojo.*;import org.example.myerp.service.ProWuliaoDetaileService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * ��Ʒ���������ϸ�����Ʋ㡿
 * @author DELL
 *
 */
//@CrossOrigin(methods = { RequestMethod.POST, RequestMethod.GET }, allowCredentials = "true", allowedHeaders = "*")

@RestController
@RequestMapping("/design/ProWuliaoDetaile")
public class ProWuliaoDetaileController {
	@Autowired
    ProWuliaoDetaileService proWuliaoDetaileService;


	@RequestMapping("/selectDetailsOfMaterialCompositionById")
	@ResponseBody
	public List<ProInformation> selectDetailsOfMaterialCompositionById(Integer id){
		List<ProInformation> list = proWuliaoDetaileService.getSelectDetailsOfMaterialCompositionById(id);
		return list;
	}
}
